<template>
  <div class="container-header large" slot="header">
    <Form class="search">
      <Row>
        <Col span="5">
          <FormItem label="公司名称">
            <Input v-model.trim="list.form.companyname" placeholder="输入公司名称" @on-enter="onSearchBtnClick"/>
          </FormItem>
          <FormItem label="手机号">
            <Input v-model.trim="list.form.telphone" placeholder="输入联系人手机号" @on-enter="onSearchBtnClick"/>
          </FormItem>
        </Col>
        <Col span="5">
          <FormItem label="ERP编号">
            <Input v-model.trim="list.form.erpsn" placeholder="输入ERP编号" @on-enter="onSearchBtnClick"/>
          </FormItem>
           <FormItem label="助记码">
            <Input v-model.trim="list.form.telphone" placeholder="输入经销商绑定信息助记码" @on-enter="onSearchBtnClick"/>
          </FormItem>
          
        </Col>
        <Col span="5">
          <FormItem label="省份" placeholder="选择省份">
            <AreaSelect onlyProvince="true" v-model="list.form.brandId"></AreaSelect>
          </FormItem>
          <FormItem label="名称">
            <Input v-model.trim="list.form.telphone" placeholder="输入经销商基础信息名称" @on-enter="onSearchBtnClick"/>
          </FormItem>
        </Col>
        <Col span="5">
        <FormItem label="联系人">
            <Input v-model.trim="list.form.name" placeholder="输入联系人" @on-enter="onSearchBtnClick"/>
          </FormItem>
         
        </Col>
        <Col class-name="search" span="2">
          <Button class="btn-search large" type="primary" icon="ios-search" @click="onSearchBtnClick"></Button>
        </Col>
      </Row>
    </Form>
  </div>
</template>

<script>
  import AreaSelect from '@/components/AreaSelect';

  export default {
    props: {
      list: {
        type: Object,
        default: ''
      }
    },
    data() {
      return {
        currValue: [],
        useTypeList: [
          { text: '是', value: true },
          { text: '否', value: false },
        ],
      }
    },
    components: {
      AreaSelect
    },
    mounted() {
    },
    methods: {
      onSearchBtnClick() {
        this.$emit('onSearchBtnClick')
      },
      onAddBtnClick() {
        this.$emit('onAddBtnClick')
      },
    },
    watch: {
    }
  }
</script>
